package com.ruoyi.product.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品对象 jy_store_product
 *
 * @author ruoyi
 * @date 2021-11-22
 */
@ApiModel
public class StoreProductVerify extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 订单表id */
    private Long orderId;

    /** 门店id */
    private Long storeId;

    /** 商品id */
    private Long productId;

    /** 核销时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date verifyCodeTime;

    /** 核销码 */
    private String verifyCode;

    /** 新增时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date  updateTime;

    /** 内容 */
    private String content;

    /** 类型 verify=核销，aftersale=售后 */
    private String verifyType;

    private String productName;


    public void setId(Long id)
    {
        this.id = id;
    }
    public Long getId()
    {
        return id;
    }

    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }
    public Long getOrderId()
    {
        return orderId;
    }

    public void setProductId(Long productId)
    {
        this.productId = productId;
    }
    public Long getProductId()
    {
        return productId;
    }

    public void setStoreId(Long storeId)
    {
        this.storeId = storeId;
    }
    public Long getStoreId()
    {
        return storeId;
    }

    public void setVerifyCodeTime(Date verifyCodeTime)
    {
        this.verifyCodeTime = verifyCodeTime;
    }
    public Date getVerifyCodeTime()
    {
        return verifyCodeTime;
    }

    public void setVerifyCode(String verifyCode)
    {
        this.verifyCode = verifyCode;
    }
    public String getVerifyCode()
    {
        return verifyCode;
    }

    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }
    public Date getCreateTime()
    {
        return createTime;
    }

    public void setUpdateTime(Date updateTime)
    {
        this.updateTime = updateTime;
    }
    public Date getUpdateTime()
    {
        return updateTime;
    }

    public void setContent(String content)
    {
        this.content = content;
    }
    public String getContent()
    {
        return content;
    }

    public void setVerifyType(String verifyType)
    {
        this.verifyType = verifyType;
    }
    public String getVerifyType()
    {
        return verifyType;
    }

    public void setProductName(String productName)
    {
        this.productName = productName;
    }
    public String getProductName()
    {
        return productName;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("storeId", getStoreId())
            .append("productId", getProductId())
            .append("verifyCodeTime", getVerifyCodeTime())
            .append("verifyCode", getVerifyCode())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("content", getContent())
            .append("verifyType", getVerifyType())
            .toString();
    }
}
